package com.macro.mall.ums.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 会员提现记录
 *
 * @author xuyanjun
 * @date 2019-12-28
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("ums_withdraw_log")
public class MemberWithdrawLogEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 用户Id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 提现金额(以分为单位)
     */
    @TableField(value = "amount")
    private Integer amount;

    /**
     * 提现方式枚举 5:ALIPAY:支付宝 10:WECHAT:微信
     *
     *
     */
    @TableField(value = "way")
    private Integer way;

    /**
     * openId
     */
    @TableField(value = "open_id")
    private String openId;

    /**
     * 支付宝账号
     */
    @TableField(value = "alipay_account")
    private String alipayAccount;

    /**
     * 支付宝真实姓名
     */
    @TableField(value = "alipay_real_name")
    private String alipayRealName;

    /**
     * 状态: 0提现中 1:提现成功 2:提现失败
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 提现号
     */
    @TableField(value = "withdraw_no")
    private String withdrawNo;

    /**
     * 第三方交易流水号
     */
    @TableField(value = "tran_no")
    private String tranNo;

    /**
     * 导出状态枚举 0:NOT_EXPORT:未导出  5:EXPORTED:已导出
     *
     * @see
     */
    @TableField(value = "export_status")
    private Integer exportStatus;

    /**
     * 完成时间
     */
    @TableField(value = "complete_time")
    private LocalDateTime completeTime;

    /**
     * 失败原因
     */
    @TableField(value = "fail_reason")
    private String failReason;

}